package com.tjbank.cssys.mybatis.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * IamPermission
 * 
 * @author PG(Auto Generator)
 * @version V1.0
 */
public class IamPermission extends IamPermissionKey implements Cloneable, Serializable {
    private static final long serialVersionUID = -161123581321345589L;
    /** 权限编码 [50,0] */
    protected String permNum;
    /** 权限名称 [50,0] */
    protected String permName;
    /** 菜单ID [32,0] */
    protected String menuId;
    /** 页面元素类型 [12,0] */
    protected String eleType;
    /** 页面元素名称 [32,0] */
    protected String eleName;
    /** 系统接口ID [32,0] */
    protected String apiId;
    /** 权限类型(1菜单权限2接口权限) [1,0] Not NULL */
    protected String permType;
    /** 操作类型 [12,0] */
    protected String operType;
    /** 创建人 [20,0] */
    protected String createUser;
    /** 修改人 [20,0] */
    protected String updateUser;
    /** 创建时间 [19,0] */
    protected Date createTime;
    /** 修改时间 [19,0] */
    protected Date updateTime;
    /** 是否删除 [1,0] Not NULL */
    protected String isDeleted;

    public IamPermission() {
        super();
    }

    public IamPermissionKey primaryKey() {
        return new IamPermissionKey(id);
    }

    /** 取值 <== 权限编码 [50,0] */
    public String getPermNum() {
        return permNum;
    }

    /** 赋值 ==> 权限编码 [50,0] */
    public void setPermNum(String permNum) {
        this.permNum = permNum == null ? null : permNum.trim();
    }

    /** 取值 <== 权限名称 [50,0] */
    public String getPermName() {
        return permName;
    }

    /** 赋值 ==> 权限名称 [50,0] */
    public void setPermName(String permName) {
        this.permName = permName == null ? null : permName.trim();
    }

    /** 取值 <== 菜单ID [32,0] */
    public String getMenuId() {
        return menuId;
    }

    /** 赋值 ==> 菜单ID [32,0] */
    public void setMenuId(String menuId) {
        this.menuId = menuId == null ? null : menuId.trim();
    }

    /** 取值 <== 页面元素类型 [12,0] */
    public String getEleType() {
        return eleType;
    }

    /** 赋值 ==> 页面元素类型 [12,0] */
    public void setEleType(String eleType) {
        this.eleType = eleType == null ? null : eleType.trim();
    }

    /** 取值 <== 页面元素名称 [32,0] */
    public String getEleName() {
        return eleName;
    }

    /** 赋值 ==> 页面元素名称 [32,0] */
    public void setEleName(String eleName) {
        this.eleName = eleName == null ? null : eleName.trim();
    }

    /** 取值 <== 系统接口ID [32,0] */
    public String getApiId() {
        return apiId;
    }

    /** 赋值 ==> 系统接口ID [32,0] */
    public void setApiId(String apiId) {
        this.apiId = apiId == null ? null : apiId.trim();
    }

    /** 取值 <== 权限类型(1菜单权限2接口权限) [1,0], Not NULL */
    public String getPermType() {
        return permType;
    }

    /** 赋值 ==> 权限类型(1菜单权限2接口权限) [1,0], Not NULL */
    public void setPermType(String permType) {
        this.permType = permType == null ? null : permType.trim();
    }

    /** 取值 <== 操作类型 [12,0] */
    public String getOperType() {
        return operType;
    }

    /** 赋值 ==> 操作类型 [12,0] */
    public void setOperType(String operType) {
        this.operType = operType == null ? null : operType.trim();
    }

    /** 取值 <== 创建人 [20,0] */
    public String getCreateUser() {
        return createUser;
    }

    /** 赋值 ==> 创建人 [20,0] */
    public void setCreateUser(String createUser) {
        this.createUser = createUser == null ? null : createUser.trim();
    }

    /** 取值 <== 修改人 [20,0] */
    public String getUpdateUser() {
        return updateUser;
    }

    /** 赋值 ==> 修改人 [20,0] */
    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser == null ? null : updateUser.trim();
    }

    /** 取值 <== 创建时间 [19,0] */
    public Date getCreateTime() {
        return createTime;
    }

    /** 赋值 ==> 创建时间 [19,0] */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /** 取值 <== 修改时间 [19,0] */
    public Date getUpdateTime() {
        return updateTime;
    }

    /** 赋值 ==> 修改时间 [19,0] */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /** 取值 <== 是否删除 [1,0], Not NULL */
    public String getIsDeleted() {
        return isDeleted;
    }

    /** 赋值 ==> 是否删除 [1,0], Not NULL */
    public void setIsDeleted(String isDeleted) {
        this.isDeleted = isDeleted == null ? null : isDeleted.trim();
    }

    /** 浅克隆 */
    @Override
    public IamPermission clone() {
        IamPermission cloneIamPermission = null;
        try {
            cloneIamPermission = (IamPermission) super.clone();
        } catch (CloneNotSupportedException e) {
            throw new RuntimeException(e);
        }
        return cloneIamPermission;
    }

    @Override
    public String toString() {
        return "IamPermission [id = " + id + ", permNum = " + permNum + ", permName = " + permName + ", menuId = "
                + menuId + ", eleType = " + eleType + ", eleName = " + eleName + ", apiId = " + apiId + ", permType = "
                + permType + ", operType = " + operType + ", createUser = " + createUser + ", updateUser = "
                + updateUser + ", createTime = " + createTime + ", updateTime = " + updateTime + ", isDeleted = "
                + isDeleted + "]";
    }
}